package com.simtop.service;

import com.simtop.pojo.User;
import com.simtop.pojo.wddata.*;
import com.simtop.pojo.wddata.UserVo;
import com.simtop.vo.*;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public interface ApiService {


    void saverapi(String data, String createtime, String plant);

    api findAlldevice();


    boolean managedata(List<WdDate> lastDate, String plant);

    List<MainTain> findAlldeviceList(String op , String or,String deviceName, String deviceType);

    WdDate findDeviceValue(int deviceId,String testType);

    WdDate findDeviceStatusValue(int deviceId);


    void updateDevice(Integer deviceId, String devicepolicelistOne,
                      String devicepolicelistTwo, String devicepolicelistThree,
                      String devicepolicelistFor, String testLocation, Integer deviceNormalup,
                      Integer deviceNormaldown, Integer devicePoliceup, Integer devicePolicedown, String testType );

    List<MainTain> findAlldeviceListAll();

    void updateDeviceList(List<MainTain> findAlldeviceListAll);

    void updateDeviceDataList(ArrayList<MonitoringDataVo> monitoringDataVos);

    List<MonitoringDataVo> findAlldeviceMonitor(String op, String px);

    List<MonitoringDataVo> findAlldeviceListAllBystatus(String op, String px,
                                                        String readTimeBegins, String readTimeEnds,
                                                        String deviceNumber, String testType);

    List<MonitoringDataVo> findAlldeviceListAllBystatus2();

    List<MonitoringDataVo> findAlldeviceListAllBystatus3(ArrayList<Integer> sqsyidlist);


    void updeviceStatus(Integer policeControl, String testType, Integer deviceId);

    String finNewDevice();

    MainTain findBynameAndidAndType(Integer i);

    void insertGroupBy(String groupName, int i, String deviceName, Integer deviceId, String testType, int findOneTypeId);

    List<GroupUp> finAllGroupUp(String groupId);

    void insertGroupType(String groupName);

    void insertGroupType1(String groupName);

    int findOneTypeId(String groupName);

    int findOneTypeId1(String groupName);

    int finOnly(String groupName);

    List<GroupType> groupType();

    List<OnlyType> findAlldeviceListAll2();

    List<String> findAllTab(int id);

    List<String> finAllU3dTab();

    void updateAllGroupName(String groupName,int groupid);

    void updateAllGroupName1(String groupName,int groupid);

    void updateAllgoup(String groupName,Integer groupid);

    void updateAllgoup1(String groupName,Integer groupid);

    List<GroupType> groupTypeUser();

    int finOnly1(String groupName);

    List<Integer> finByid(Integer id);

    UserVo findOne(Integer i);

    void insertGroupBy1(Integer i, String name, String rolename, int findOneTypeId);

    List<GroupUserTypes> finAllGroupUp2(String groupId);

    void deleteGroup(Integer groupid);

    void deleteGroup1(Integer groupid);

    List<wduserGroupBy> findAllGroupByid();

    List<wduserGroupBy> findAllGroupByid2();

    wduserGroupByDao finOnewdGroupById(Integer wduserGroupByDao);

    List<User> findAllUser(String groupChead);

    void updateAllgroupByid(String types, Integer id, String name);

    String findOneGroupByOne(Integer id);

    String findOneGroupByOne2(Integer id);

    void cheageUser(String groupchead,String name);

    void cheageUser2(String groupchead,String name);

    void deletOne(Integer id, String type);

    void updateBackendUser(User user);

    void insertGroupbubu(String types  , String name);

    List<MainTain> findAlldeviceList2(String deviceName, String deviceType);

    void getStatus(Integer id);

    void getStatusList(ArrayList<Integer> sqsyidlist);

    void getStatusList2(ArrayList<Integer> sqsyidlist);

    void safeData(Integer status);

    allTypeVo getsafeData();

    void massageStatus(String cont, Integer status);

    StatusVo getmassageStatus();

    messageVo getmassageStatus2();

    int lastGroup(Integer ids);

    String findRoleName(Integer roleId);

    List<String> findwdList(String vs);

    List<String> findwdList2(String formatBegin , String formatEnd);

    List<MainTain> findAlldeviceListAllnew(String devicetype);

    Integer findvalue(String as2, String deviceNumber);

    List<String> findviewData();

    void yjController(Integer yjControl, String testType, Integer deviceId);

    void changemaintime(Integer deviceId, Date mainTime);

    void timeCount(Integer timeCount);

    Integer finOneTimeCount();

    ApiVo finnewData();

    Integer findTtimeCount();

    List<String> sixday();

    List<String> findSixDay(String vbs);

    List<String> findSixDay2(String vbs);
}
